package com.pt25.service.sys.rpc;


import com.pt25.base.res.ResBody;
import com.pt25.service.sys.rpc.fallback.SysRpcApiFallback;
import com.pt25.service.sys.rpc.vo.RpcTestVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "sys-service", fallback = SysRpcApiFallback.class)
public interface SysRpcApi {
    @RequestMapping(value = "/rpc/sys-service/test-rpc", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    ResBody testRpc(@Validated @RequestBody RpcTestVo rpcTestVO);
}
